package com.test.schoolhelper.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

// TODO: 2024/5/29  联系人
@Entity
public class User implements Serializable {

    private static final long serialVersionUID = -3206065828593806735L;
    @Id(autoincrement = true)//设置自增长
    private Long id;
    @Index(unique = true)//设置唯一性
    private String name;
    private String phone;
    private String company;
    private String address;

    public User(String name, String phone, String company, String address) {
        this.name = name;
        this.phone = phone;
        this.company = company;
        this.address = address;
    }

    @Generated(hash = 2093049027)
    public User(Long id, String name, String phone, String company,
            String address) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.company = company;
        this.address = address;
    }

    @Generated(hash = 586692638)
    public User() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getCompany() {
        return this.company;
    }
    public void setCompany(String company) {
        this.company = company;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

}
